package pl.edu.agh.lab2.sr.game;

import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;

import pl.edu.agh.lab2.sr.beans.InvalidUserException;
import pl.edu.agh.lab2.sr.player.IPlayer;

public interface IBattleshipGame extends Remote, Serializable {

	void start() throws RemoteException;

	void addSecondPlayer(IPlayer player) throws RemoteException,
			InvalidUserException;

	void finish() throws RemoteException;

	void nextMove() throws RemoteException;

	int getId() throws RemoteException;

	void setMap(IPlayer player, GameMap map) throws RemoteException;

	IPlayer getPlayer1();

	IPlayer getPlayer2();

	
	
}
